package org.jeecg.modules.flowermater.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 采后物资出库主表
 * @Author: jeecg-boot
 * @Date:   2022-07-13
 * @Version: V1.0
 */
@ApiModel(value="flower_material_out_main对象", description="采后物资出库主表")
@Data
@TableName("flower_material_out_main")
public class FlowerMaterialOutMain implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**单号*/
	@Excel(name = "单号", width = 15)
    @ApiModelProperty(value = "单号")
    private String no;
	/**出库人*/
	@Excel(name = "出库人", width = 15)
    @ApiModelProperty(value = "出库人")
    private String outPersonName;
	/**出人编码*/
	@Excel(name = "出人编码", width = 15)
    @ApiModelProperty(value = "出人编码")
    private String outPersonCode;

    /**基地*/
    @Excel(name = "基地", width = 15 , dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    @Dict( dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "基地")
    private String sourceBase;
    /**领用大棚*/
    @Excel(name = "领用大棚", width = 15 , dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    @Dict( dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "领用大棚")
    private String sourceGreenhouse;

	/**出库时间*/
	@Excel(name = "出库时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出库时间")
    private Date outTime;
	/**库房*/
    @Excel(name = "库房", width = 15,dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    @ApiModelProperty(value = "库房")
    @Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    private String storehouse;
    @Excel(name = "成本中心", width = 15 , dicCode = "ch_cost")
    @Dict(dicCode = "ch_cost",dicText = "costText")
    @ApiModelProperty(value = "成本中心")
    private String cost;

    @Excel(name = "领用审核人", width = 15  )
    @ApiModelProperty(value = "领用审核人")
    private String leaderSureUser;

    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @Excel(name = "领用审核时间", width = 15  ,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "领用审核时间")
    private Date leaderSuretime;


    @Excel(name = "库管确认人", width = 15  )
    @ApiModelProperty(value = "库管确认人")
    private String houseSureUser;

    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @Excel(name = "库管确认时间", width = 15 ,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "库管确认时间")
    private Date houseSuretime;

    @Excel(name = "备注", width = 15  )
    @ApiModelProperty(value = "备注")
    private String remarks;


    @Excel(name = "账期号", width = 15  )
    @ApiModelProperty(value = "账期号")
    private String period;

    @Excel(name = "账期状态", width = 15  )
    @ApiModelProperty(value = "账期状态")
    private String periodState;



    /**状态 0正常1删除*/
//	@Excel(name = "状态  0录入，1领导确认，2库管确认", width = 15)
	@Excel(name = "状态", width = 15, dicCode = "ch_materInmaoutState" , needMerge = true )
    @ApiModelProperty(value = "状态 0录入，1领导确认，2库管确认")
    private Integer state;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Excel(name = "创建人", width = 15,  dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @Dict( dictTable = "sys_user",dicText = "realname",dicCode = "username")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
}
